package com.sj.purchase.modules.helper.repository;

import com.sj.purchase.modules.helper.model.OutBoundUniqueCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;
import java.util.List;

/**
 * @author yangrd
 * @date 2018/8/16
 **/
public interface OutBoundUniqueCodeRepository extends JpaRepository<OutBoundUniqueCode,String> ,JpaSpecificationExecutor<OutBoundUniqueCode>{

    /**
     * delete
     * @param date day
     * @return ist<OutBoundUniqueCode>
     */
    List<OutBoundUniqueCode> deleteAllByCreateDateBefore(Date date);

}
